package edu.sctu.practice.class01.nieyu.test.test07;

/**
 * Created by Administrator on 2015/10/15.
 */
public class WuMingFen {

    String theMa;
    int quantity;
    boolean likeSoup;

    public WuMingFen() {

        this.theMa = "牛肉";
        this.quantity = 3;
        this.likeSoup = true;
    }

    public WuMingFen(String theMa, int quantity, boolean likeSoup) {

        this.theMa = theMa;
        this.quantity = quantity;
        this.likeSoup = likeSoup;
    }

    public WuMingFen(String theMa, int quantity) {

        this.theMa = theMa;
        this.quantity = quantity;

    }

    public void check() {

        System.out.println("面码：" + this.theMa + "\n粉的分量：" + this.quantity
                + "(两)" + "\n是否带汤：" + (this.likeSoup == true ? "是" : "否"));
    }


}
